package user

type LoginRequest struct {
	UserName string
	PassWord string
}

func NewLoginRequest(username, password string) *LoginRequest {
	return &LoginRequest{
		UserName: username,
		PassWord: password,
	}
}

type LogoutRequest struct {
	Session  string
	UserName string
}

func NewLogoutRequest(session, username string) *LogoutRequest {
	return &LogoutRequest{
		Session:  session,
		UserName: username,
	}
}

type Session struct {
	UserName string `json:"user"`
	Id       string `json:"uid"`
}

func NewSession(id, username string) *Session {
	return &Session{
		UserName: username,
		Id:       id,
	}
}
